package van.planifolia.factory.methodfactory;

/**
 * Created by Intellij IDEA<br>
 *
 * @author Planifolia.Van
 * @version 1.0
 * @date 2022/11/8 17:41
 */
public class Test {
    public static void main(String[] args) {
        // 使用小米的工厂创建小米笔记本
        Factory miFactory = new MiFactory();
        miFactory.getBean().show();

        // 使用戴尔的工厂创建小米笔记本
        Factory dellFactory = new DellFactory();
        dellFactory.getBean().show();
    }
}
